#import "AppControllerHeader.h"
#import "iTableColumnHeaderCell.h"

@implementation AppControllerHeader

- (void)awakeFromNib
{
    /* Set all columns of tableView to use an iTableColumnHeaderCell as 
        their headerCell. */
    
    NSArray *columns = [tableView tableColumns];
    NSEnumerator *cols = [columns objectEnumerator];
    NSTableColumn *col = nil;
    
    iTableColumnHeaderCell *iHeaderCell;
    
    while (col = [cols nextObject]) {
        iHeaderCell = [[iTableColumnHeaderCell alloc] 
                        initTextCell:[[col headerCell] stringValue]];
        [col setHeaderCell:iHeaderCell];
        [iHeaderCell release];
    }
}

@end
